package com.chif.goingplus.dao;

import com.chif.goingplus.pojo.Work;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface WorkMapper {

    //增加任务
    int addWork(Work work);
    //删除任务
    int deleteWorkById(@Param("wid") int id);
    //更新任务
    int updateWork(Work work);

    //查询一个员工的所有任务
    List<Work> queryWorksByEmp(@Param("eid") int id);
}
